import 'package:flutter/material.dart';
import 'package:ost_flutter_module/class/entity/store/store_search_entity.dart';
import 'package:ost_flutter_module/common/adapt.dart';
import 'package:ost_flutter_module/common/defines_macro.dart';
import 'package:ost_flutter_module/common/styles.dart';
import 'package:ost_flutter_module/widget/custom_widget/custome_radius_container.dart';

class StoreGridCard extends StatelessWidget {
  final StoreSearchEntityGoodsList goods;

  const StoreGridCard({Key key, this.goods}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return GContainer(
      child: Padding(
        padding: EdgeInsets.all(Adapt.px(15)),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            AspectRatio(
                aspectRatio: 140 / 105,
                child: Image.network(default_image, fit: BoxFit.cover)),
            Text('儿童数码照相机', style: TextStyles.titleStyle),
            Row(
              children: [
                Icon(Icons.queue_music_rounded,
                    size: 22, color: Colors.blueAccent),
                SizedBox(width: Adapt.px(6)),
                Text('50000', style: TextStyles.titleStyle),
              ],
            ),
          ],
        ),
      ),
    );
  }
}
